----------------------------------------------------------------------------------------------------------------------------------
--[[

   

]]--
----------------------------------------------------------------------------------------------------------------------------------
local hutao_com_healing_grove = Class(function(self, inst)
    self.inst = inst

    self.current = 0

end)
------------------------------------------------------------------------------------------------------------------------------
--- classified
    function hutao_com_healing_grove:AttachClassified(classified)
        self.classified = classified
        classified:ListenForEvent("healing_grove_com_update",function()
            local old = self.current
            self.current = self:GetCurrent()
            self.inst:PushEvent("hutao_com_healing_grove_replica_update",{
                old = old,
                new = self.current,
                activing = self.current > 0,
            })
            -- print("++++ healing_grove_com_update current",self:GetCurrent())            
        end)
        print("hutao_com_healing_grove:AttachClassified")
    end
------------------------------------------------------------------------------------------------------------------------------
----
    function hutao_com_healing_grove:SetCurrent(value)
        if self.classified then
            self.classified:SetHealingGroveCurrent(value)
        end
    end
    function hutao_com_healing_grove:GetCurrent()
        if self.classified then
            return self.classified:GetHealingGroveCurrent()
        end
        return 0
    end
------------------------------------------------------------------------------------------------------------------------------
return hutao_com_healing_grove







